package com.fly.springbootTemplate.service;

import com.fly.springbootTemplate.entity.Teacher;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface TeacherService {
    //增加教师
    boolean addTeacher(Teacher teacher);
    //删除教师
    boolean deleteTeacher(String teacherId);
    //修改教师
    boolean updateTeacher(Teacher teacher);
    //查询教师
    List<Teacher> getAllTeachers();
    //根据id查询教师
    Teacher getTeacherById(String teacherId);
    //模糊搜索教师名
    List<Teacher> getTeacherByName(String teacherName);
}
